//===============================================================================
// Microsoft patterns & practices
// Web Client Software Factory
//===============================================================================
// Copyright � Microsoft Corporation.  All rights reserved.
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
// FITNESS FOR A PARTICULAR PURPOSE.
//===============================================================================
// The example companies, organizations, products, domain names,
// e-mail addresses, logos, people, places, and events depicted
// herein are fictitious.  No association with any real company,
// organization, product, domain name, email address, logo, person,
// places, or events is intended or should be inferred.
//===============================================================================

using System;

namespace MVPComposibility.ContactManager.DomainModel
{
	[Serializable]
	public class Address : ICloneable
	{
		private string _addressName;
		private string _street;
		private string _city;
		private string _state;
		private string _zip;

		public Address()
		{
		}

		public Address(string addressName, string street, string city, string state, string zip)
		{
			_addressName = addressName;
			_street = street;
			_city = city;
			_state = state;
			_zip = zip;
		}

		public string AddressName
		{
			get { return _addressName; }
			set { _addressName = value; }
		}

		public string Street
		{
			get { return _street; }
			set { _street = value; }
		}

		public string City
		{
			get { return _city; }
			set { _city = value; }
		}

		public string State
		{
			get { return _state; }
			set { _state = value; }
		}

		public string Zip
		{
			get { return _zip; }
			set { _zip = value; }
		}

		#region ICloneable Members

		public object Clone()
		{
			Address copy = (Address)Activator.CreateInstance(GetType());
			copy._addressName = _addressName;
			copy._street = _street;
			copy._city = _city;
			copy._state = _state;
			copy._zip = _zip;
			return copy;
		}

		#endregion
	}
}
